<?php

/**
 * asigcredenciales actions.
 *
 * @package    atenea
 * @subpackage asigcredenciales
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2288 2006-10-02 15:22:13Z fabien $
 */
class asigcredencialesActions extends autoasigcredencialesActions

{ 

public function executeIndex()
{
  
    return $this->forward('asigcredenciales', 'list');
  
	
}	
	
public function executeList()
  {
    $this->processSort();

    $this->processFilters();


    // pager
    $this->pager = new sfPropelPager('Ateneausuario', 20);
    
       
    $c2= new Criteria();
    $c2->add(RolPeer::DESCRIPCION,'Estudiante');
    $objrol = RolPeer::doSelectOne($c2);
    if ($objrol)
    {
     $idrol = $objrol->getId();
    }else
       $idrol = 0; 
    $c = new Criteria();    
    $c->add(AteneaUsuarioPeer::ROL_ID,$idrol,Criteria::NOT_EQUAL);
    $this->addSortCriteria($c);
    $this->addFiltersCriteria($c);
    $this->pager->setCriteria($c);
    $this->pager->setPage($this->getRequestParameter('page', 1));
    $this->pager->init();
  }
	
public function executeCreate()
{
  
    return $this->forward('asigcredenciales', 'list');
  
	
}

public function executeDelete()
{
  
    return $this->forward('asigcredenciales', 'list');
  
	
}
 
}